package org.apache.ibatis.demo.dao;

import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;
import java.util.Map;

/**
 * @Date 2021/2/16 22:28
 * @Created decorationTest
 * @Description
 */
public interface BlogMapper2 {

  @Options(flushCache = Options.FlushCachePolicy.TRUE)
  int selectBlog();

  @Select("select 4 from dual")
  List<Integer> queryBlogList(String str);

  @Update("select 11111 from dual ")
  int updateBlog(String str);

  @Select("select * from blog")
  List<Map<String, Object>> queryAllBlogList();

  @Select("select * from blog where id = #{id}")
  List<Map<String, Object>> queryBlogListById(String id);

}
